import { selectTheme } from "@/store/reducer/themeSlice";
import { shallowEqual, useSelector } from "react-redux";

export const useDark = () => {
  const { isDark, themeDarkColor, themeBrightColor } = useSelector(selectTheme, shallowEqual);
  return {
    isDark,
    themeColor: isDark ? themeDarkColor : themeBrightColor,
  };
};

export default useDark;
